<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
</head>
<body>
<div class="panelBar" style="float:right;font-size: 12px;" th:fragment="pagination">
	<ul style="float:right;font-size: 12px;" class="pagination">
		<li class="page-item" th:class="${indexPage==0}?'disabled' : ''">
			<a class="page-link" th:href="@{'/armyjob/2019/0/' + ${pageSize}+'/'+${query}}">首页</a>
		</li>
		<li class="page-item" th:class="${indexPage==0}?'disabled' : ''">
			<a class="page-link" th:href="@{'/armyjob/2019/' + ${(indexPage-1)*pageSize}+'/'+${pageSize}+'/'+${query}}">上一页</a>
		</li>
		<li class="page-item" th:if="${indexPage-3 >=0}">
			<a class="page-link" th:href="@{'/armyjob/2019/' + ${(indexPage-3)*pageSize}+'/'+${pageSize}+'/'+${query}}"
			   th:text="${indexPage -2}">1
			</a>
		</li>
		<li class="page-item" th:if="${indexPage-2 >=0}">
			<a class="page-link" th:href="@{'/armyjob/2019/' + ${(indexPage-2)*pageSize}+'/'+${pageSize}+'/'+${query}}"
			   th:text="${indexPage -1}">1
			</a>
		</li>
		<li class="page-item" th:if="${indexPage-1 >=0}">
			<a class="page-link" th:href="@{'/armyjob/2019/' + ${(indexPage-1)*pageSize}+'/'+${pageSize}+'/'+${query}}"
			   th:text="${indexPage }">1
			</a>
		</li>
		<li class="page-item active">
			<a class="page-link" href="javascript:void(0)" th:text="${indexPage+1}">1</a>
		</li>
		<li class="page-item" th:if="${indexPage+1 <totalPage}">
			<a class="page-link" th:href="@{'/armyjob/2019/' + ${(indexPage+1)*pageSize}+'/'+${pageSize}+'/'+${query}}"
			   th:text="${indexPage +2}">1
			</a>
		</li>
		<li class="page-item" th:if="${indexPage+2 <totalPage}">
			<a class="page-link" th:href="@{'/armyjob/2019/' + ${(indexPage+2)*pageSize}+'/'+${pageSize}+'/'+${query}}"
			   th:text="${indexPage +3}">1
			</a>
		</li>
		<li class="page-item" th:if="${indexPage+3 <totalPage}">
			<a class="page-link" th:href="@{'/armyjob/2019/' + ${(indexPage+3)*pageSize}+'/'+${pageSize}+'/'+${query}}"
			   th:text="${indexPage +4}">1
			</a>
		</li>

		<li class="page-item" th:class="${indexPage==(totalPage-1)}?'disabled' : ''">
			<a class="page-link" th:href="@{'/armyjob/2019/' + ${(indexPage+1)*pageSize}+'/'+${pageSize}+'/'+${query}}">下一页</a>
		</li>

		<li class="page-item" th:class="${indexPage==(totalPage-1)}?'disabled' : ''">
			<a class="page-link" th:href="@{'/armyjob/2019/' + ${(totalPage-1)*pageSize}+'/'+${pageSize}+'/'+${query}}">末页</a>
		</li>

		<li class="page-item">
			<a class="page-link" href="javascript:void(0)"
			   th:text="${'共查找到:'+total+',当前第'+(indexPage+1)+'页,每页'+pageSize}">下一页</a>
		</li>


	</ul>
<style>
	.disabled{display: none}
</style>
</div>
</body>
</html>
